# -*- coding:utf-8 -*-
# Author:Ami

import time


def bar():
    print("bar")


def test1(func):
    start_time = time.time()
    func()
    stop_time = time.time()
    print("the func run time is %s" % (stop_time - start_time))


test1(bar)


def test2(func):
    print(func)
    return  func

test2(bar)
